package cn.edu.sgu.www.mhxysy.service.change.impl;

import cn.edu.sgu.www.mhxysy.entity.change.BianshenkaType;
import cn.edu.sgu.www.mhxysy.mapper.change.BianshenkaTypeMapper;
import cn.edu.sgu.www.mhxysy.service.change.BianshenkaTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class BianshenkaTypeServiceImpl implements BianshenkaTypeService {

    private final BianshenkaTypeMapper bianshenkaTypeMapper;

    @Autowired
    public BianshenkaTypeServiceImpl(BianshenkaTypeMapper bianshenkaTypeMapper) {
        this.bianshenkaTypeMapper = bianshenkaTypeMapper;
    }

    @Override
    public List<BianshenkaType> selectAll() {
        return bianshenkaTypeMapper.selectList(null);
    }

    @Override
    public BianshenkaType selectById(Integer id) {
        return bianshenkaTypeMapper.selectById(id);
    }

}